import java.util.PriorityQueue;

public class Test {
    /**
     * 元素比较->Test2
     * @param args
     */
    public static void main1(String[] args) {

    }
    public static void main(String[] args) {
        int[] array = { 27,15,19,18,28,34,65,49,25,37 };
        TestHeap testHeap = new TestHeap();
        testHeap.initHeap(array);
        testHeap.createBigHeap();
        System.out.println();

        testHeap.offer(80);
        testHeap.offer(11);
        System.out.println(testHeap.poll());
        testHeap.heapSort();
        System.out.println();
    }
}
